import jwtDecode, { JwtPayload } from "jwt-decode";

const mockToken: string = "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiLmnajkv4oxIiwidXNlcklkIjoiMzM2NDciLCJuYW1lIjoi5p2o5L-KIiwidHlwZSI6InVzZXIiLCJleHAiOjE2MjI3Mjg1NTR9.qeaIBUbD3KPs91PcTnrDqX2N2cdAZusWJRcDR1p_ID62masEwndQrWtpo3s8C9KDsR6IuRA4UF-WO6AcWCZAeB0QQ4h1zNxUqzSufLqCBwMCHs2Bsk7AnWNSPFiQ1q_Y-9oC5Zj2BzapfQ2oMteS9klKDxQB85r3fqiCr0s8MUc";
const JWTDecoded = (jwtToken: string) => jwtDecode<JwtPayload>(jwtToken || mockToken)
export { JWTDecoded }